package com.gz.springboot.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
//自定义异常
//这个状态码是由自己来选的，尽量合理来设置
@ResponseStatus(value = HttpStatus.FORBIDDEN,reason = "name需要为Tom") //403
public class AccessException extends RuntimeException {

    public AccessException() {}

    public AccessException(String message) {
        super(message);
    }
}
